﻿<%@ Page Title="" culture="en-GB" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="Summery_QandAQuestion.aspx.cs" Inherits="Summery_QandAQuestion" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <div class="col-md-12">
         <div class="panel-body" style="width: 100%; padding: 0px;">
             <div class="well well-sm" style="font-size:large">Summery Question-Answer</div>
           
                <div class="row">
                <div class="col-lg-2 text-right">
                    <span class="control-label">Search By:</span>
                </div>
                      <div class="col-lg-3" >
                          <asp:DropDownList ID="ddlEmail" runat="server" AutoPostBack="true" CssClass="dropdown-header" Style="width: 100%;" OnSelectedIndexChanged="ddlEmail_SelectedIndexChanged">
                                        <asp:ListItem Value="0" Text ="-- Select --" ></asp:ListItem>
                                        <asp:ListItem Value="EMAIL" Text="Email ID" ></asp:ListItem>
                                        <asp:ListItem Value="REGISTRATION" Text="Registration No."></asp:ListItem>
                                        <asp:ListItem Value="CANDIDATE" Text="Candidate Name"></asp:ListItem>
                                    </asp:DropDownList>
                          </div>
                          <div class="col-lg-2 text-right">
                           <asp:Label ID="lblvalue" runat="server" ></asp:Label>   
                          </div>
                          <div class="col-lg-3">
                          <div runat="server" id="ddlvalue">
                           
                          <asp:TextBox ID="txtvalue" runat="server" ></asp:TextBox>
                             
                              </div>
                              </div>
                      
                </div><br />
                    

                                 <%--<td style="vertical-align: middle; width: 20%;" align="left" class="auto-style3">
                                     <asp:TextBox ID="txtvalue" runat="server"></asp:TextBox>
                                   </td>--%>
               <div class="row">
                       <div class="col-lg-2 text-right">
                                    <span class="control-label">Country:</span>
                       </div>
                    <div class="col-lg-3">
                       <asp:DropDownList ID="ddlCountry" CssClass="dropdown-header" Style="width: 100%;" runat="server"></asp:DropDownList>
                    </div>  
                             
                         
                             <%--<div class="col-lg-2 text-right">
                                <span class="control-label">State:</span>              
                             </div>       
                             <div class="col-lg-3">
                                <asp:TextBox ID="txtState" runat="server"></asp:TextBox>
                             </div>--%>
                        </div><br /> 

                        <div class="row">
                            <div class="col-lg-2 text-right">
                                <span class="control-label">From Date :</span>
                                </div>
                            <div class="col-lg-3">
                                    
                                    <asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox>
                                    <asp:ImageButton ID="imgDateFrom" ImageUrl="../Images/calendar.gif" ImageAlign="Bottom" runat="server" Style="display: none" />
                                    <ajaxToolkit:CalendarExtender ID="cDateFrom" PopupButtonID="imgPopup" runat="server" TargetControlID="txtDateFrom"
                                    Format="dd/MM/yyyy">
                                    </ajaxToolkit:CalendarExtender>
                                    <asp:RequiredFieldValidator ID="ValidityFromDate" Display="Dynamic"   runat="server" ControlToValidate="txtDateFrom"
                                    ErrorMessage="Select From Date" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            <div class="col-lg-2 text-right">
                
    
                                <span class="control-label">Date Upto :</span>
                                </div>
                            <div class="col-lg-2">
                                    <asp:TextBox ID="txtDateUpto" runat="server" ></asp:TextBox>
                                    <asp:ImageButton ID="imgDateUpto" ImageUrl="../Images/calendar.gif" ImageAlign="Bottom" runat="server" Style="display: none" />
                                    <ajaxToolkit:CalendarExtender ID="cDateUpto" PopupButtonID="imgPopup" runat="server" TargetControlID="txtDateUpto"
                                    Format="dd/MM/yyyy">
                                </ajaxToolkit:CalendarExtender>
                               <asp:RequiredFieldValidator ID="ValidityToDate" Display="Dynamic" runat ="server" ControlToValidate="txtDateUpto"
                                    ErrorMessage="Select To Date" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            
                        </div>
                                &nbsp;
                                                       
                                 <div class="row " style="text-align:center">
                                     
                                     <asp:Button ID="btnSearch"   OnClick="BtnSearch_OnClick" runat="server"
                                                Text="Search" CausesValidation="false" ></asp:Button>
                                         
                                         <asp:Button ID="btnClear" OnClick="BtnClear_OnClick" runat="server"
                                                Text="Clear" CausesValidation="false"></asp:Button>
                                    
                                         </div>
                              </div>
        <br />

                
        

                
                
                <div class="row">
                    <asp:Label runat="server" ID="lblErrorMessage"></asp:Label>
                </div>
            
              <div class="row" ></div>
                  <div class="grd_table" Align="center" style="overflow-x:scroll; overflow-y:scroll; width: 100%; height:30%; margin:0px;" >
                        <asp:GridView ID="gvActivity" runat="server"  AllowPaging="True"  Width="60%" CssClass="table" PageSize="10"
                            AutoGenerateColumns="False" OnPageIndexChanging="gvActivity_PageIndexChanging"  OnSelectedIndexChanged="gvActivity_SelectedIndexChanged"> <%--OnRowDataBound="gvActivity_RowDataBound" OnRowDeleting="gvActivity_RowDeleting"--%>
                            <Columns>
                                
                                
                                <asp:BoundField DataField="CandidateName" HeaderText="Candidate Name">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CountryName" HeaderText="CountryName">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                               <%-- <asp:BoundField DataField="Question Ask By" HeaderText="Question Ask By">
                                    <ItemStyle Width="45%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>--%>
                                
                                <asp:BoundField DataField="CandidateID" HeaderText="Candidate ID" Visible="false">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Email" HeaderText="Email">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="RegistrationNo" HeaderText="Registration No">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Query" HeaderText="Query">
                                    <ItemStyle Width="20%" HorizontalAlign="Left" Wrap="false" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>

                                <asp:BoundField DataField="Query By" HeaderText="Query By">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="QueryDate" HeaderText="Query Date">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Answer" HeaderText="Answer">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Answer By" HeaderText="Answer By">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                
                                
                                <asp:BoundField DataField="AnswerDate" HeaderText="Answer Date">
                                    <ItemStyle Width="10%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>


                                
                                
                                
                                
                                
                                
                                <%--<asp:BoundField DataField="CountryName" HeaderText="Country Name" Visible="true">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CountryID" HeaderText="CountryID" Visible="False">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>

                                
                                
                                                                  
                                <asp:BoundField DataField="WaitingOn" HeaderText="Registration No">
                                    <ItemStyle Width="45%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Days Since Last Process" HeaderText="Registration No">
                                    <ItemStyle Width="45%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                
                                
                                
                                 
                               <asp:BoundField DataField="Assessor Date" HeaderText="Assessor Date" Visible="true">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                 
                                 
                                 <asp:BoundField DataField="Auditor Date" HeaderText="Auditor Date" Visible="true">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                
                                
                                <asp:BoundField DataField="Industry Expert Date" HeaderText="Industry Expert Date" Visible="true">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                
                                <asp:BoundField DataField="Final Status" HeaderText="Final Status" Visible="true">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>

                                <asp:HyperLinkField DataNavigateUrlFields="ActivityID" DataNavigateUrlFormatString="~/Admin/ActivityMasterModify.aspx?agid={0}&mod=up"
                                    HeaderText="Edit" Text="Edit" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" >
                                <ItemStyle HorizontalAlign="Left" Width="12%"></ItemStyle>
                                </asp:HyperLinkField>
                                <asp:TemplateField HeaderText="Delete">
                                <ItemStyle Width="12%" HorizontalAlign="Left" />
                                <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" CommandArgument='<%# Eval("ActivityID") %>' CommandName="Delete" runat="server"><%# Convert.ToBoolean(Eval("IsActive")) == false ? "Activate" : "Delete"%></asp:LinkButton>
                                </ItemTemplate>
                                </asp:TemplateField>--%>
                            </Columns>
                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <div class="row" style="text-align:center" >
                            

                             &nbsp;
                             <asp:Button ID="btnDownload" OnClick="btn_download_Click" runat="server" Text="Export To Excel" Visible="false"  CausesValidation="false"  />
                        </div>
                  </div>
                </div>
                    <br />
                  
               <input id="hdnInput" runat="server" type="hidden" />

                
    

</asp:Content>

